package com.group3.hospital.bean;/*
 *@author 时崎
 * 2021/12/31
 */

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Affiche {
    private Integer id;
    private String message;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date date;

    public Affiche(String message, Date date) {
        this.message = message;
        this.date = date;
    }
}
